<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <link rel="stylesheet" href="css/layer.css" />
    <link rel="stylesheet" href="css/style.css" />
	<link rel="icon" href="images/favicon.png">
</head>
<body>
	<header class="mui-bar mui-bar-nav" id="head">
		<a class="back_a">
			<img src="images/back.png"/>
		</a>
		<span class="mui-title">商家信息</sapn>
	</header>

	<!--<p class="bottom_op">审核中，请耐心等待！</p>-->
</body>
<script type="text/javascript" src="js/jquery.js" ></script>
<script type="text/javascript" src="js/layer.js" ></script>
<script type="text/javascript">
    //返回上一级
    $(".back_a").click(function(){
        window.location.href ="/index";
    })
	//获取正在申请的信息
	var storage=window.localStorage;
	var token=storage.token;
	if(token==undefined){
		window.location.href = "/"
	}
	$.ajax({
		type: "GET",
		url: "/users/identity/vipApplyStatus?token="+token,
		contentType: "application/json;charset=UTF-8",
		data:"",
		dataType: "json",
		success: function (data) {
			if (data.code && data.code==='success') {
				var html =
				'<div class="install_bg">'+
				'<dl class="install_dl">'+
				'<dt class="install_dt busine_dt">商家姓名</dt>'+
				'		<dd class="install_dd busine_dd">'+
				'		<i class="i_color">*</i>'+
				'		<span class="busine_sapn">'+data.data.relationUser.userName+'</span>'+
				'		</dd>'+
				'		</dl>'+
				'		<dl class="install_dl">'+
				'		<dt class="install_dt busine_dt">手机号码</dt>'+
				'		<dd class="install_dd busine_dd">'+
				'		<i class="i_color">*</i>'+
				'		<span class="busine_sapn">'+data.data.relationUser.mobileNumber+'</span>'+
				'		</dd>'+
				'		</dl>'+
				'		<dl class="install_dl">'+
				'		<dt class="install_dt busine_dt">微信号</dt>'+
				'		<dd class="install_dd busine_dd">'+
				'		<i class="i_color">*</i>'+
				'		<span class="busine_sapn">'+data.data.relationUser.weChat+'</span>'+
				'		</dd>'+
				'		</dl>'+
				'		</div>';
				if (undefined != data.data.sellerUser) {
					html = html + '<div class="install_bg">'+
							'<dl class="install_dl">'+
							'<dt class="install_dt busine_dt">商家姓名</dt>'+
							'		<dd class="install_dd busine_dd">'+
							'		<i class="i_color">*</i>'+
							'		<span class="busine_sapn">'+data.data.sellerUser.userName+'</span>'+
							'		</dd>'+
							'		</dl>'+
							'		<dl class="install_dl">'+
							'		<dt class="install_dt busine_dt">手机号码</dt>'+
							'		<dd class="install_dd busine_dd">'+
							'		<i class="i_color">*</i>'+
							'		<span class="busine_sapn">'+data.data.sellerUser.mobileNumber+'</span>'+
							'		</dd>'+
							'		</dl>'+
							'		<dl class="install_dl">'+
							'		<dt class="install_dt busine_dt">微信号</dt>'+
							'		<dd class="install_dd busine_dd">'+
							'		<i class="i_color">*</i>'+
							'		<span class="busine_sapn">'+data.data.sellerUser.weChat+'</span>'+
							'		</dd>'+
							'		</dl>'+
							'		</div>';
				}
				$("#head").append(html);
			} else {

			}
		},
		error: function (data) {
            if(data.code==undefined){
                layer.msg("登录失效",{icon:2,time:1000});
                window.location.href ="/";
            }
			layer.msg(data.message,{icon:2,time:1000});
		}
	});

</script>
</html>